package cn.csc.module.product.controller.admin.spu.vo;

import cn.csc.module.product.mybatis.SkuAttrTypeHandler;
import cn.csc.module.product.mybatis.SpuBasicTypeHandler;
import cn.csc.module.product.mybatis.SpuRuleTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigInteger;
import java.util.List;

/**
 * @author: 云隐
 * @Date: 2024/01/10
 **/
@ApiModel("管理后台 - spu综合信息 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SpuDataRespV2VO extends SpuBaseV2VO {

    private BigInteger id;

    @ApiModelProperty(value = "商品详情")
    private String detail;
    @ApiModelProperty(value = "商品详情图片")
    private String detailImg;
    @ApiModelProperty(value = "商品访问次数")
    private Integer detailNum;
    @ApiModelProperty(value = "商品规格值")
    private String attrValue;
    @ApiModelProperty(value = "商品sku规格值")
    @TableField(typeHandler = SkuAttrTypeHandler.class)
    private List<SkuAttrCreateReqV2VO> skuAttr;
    @ApiModelProperty(value = "商品sku规格值")
    @TableField(typeHandler = SpuRuleTypeHandler.class)
    private List<SkuRuleAttrReqV2VO> ruleAttrs;
    @ApiModelProperty(value = "商品sku规格值")
    @TableField(typeHandler = SpuBasicTypeHandler.class)
    private List<SpuBasicAttrReqV2VO> basicAttrs;


}
